package com.superMall.service;

import com.superMall.common.ServerResponse;
import com.superMall.pojo.Category;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Created by guanwei on 2017/11/17.
 */
public interface ICategoryService {

    ServerResponse<String> addCategory(String categoryName,Integer parentId);
    ServerResponse<String> updateCategory(Integer categoryId,String categoryName);
    ServerResponse<List<Category>> getChildrenParalellCategory(@Param("categoryId") Integer categoryId);
    ServerResponse<List<Integer>> selectCategoryAndChildrenById(Integer categoryId);
}
